export const formComponentConfig = {
  selectLike: () =>
    import('@/views/purchase-demand/components/formComp/selectLike.vue'),
  user: () => import('@/common/components/search-modal/user.vue'),
  dept: () => import('@/common/components/search-modal/dept.vue'),
  dictSelect: () => import('@/common/components/dict-select/index.vue'),
  contractCatego: () =>
    import(
      '@/views/purchase-order/purchase-order-preparation/com/input-modal-type.vue'
    ),
};

export const formRenderConfig = {
  sysOrderNo: { label: '订单号', field: 'sysOrderNo', componentName: 'input' },
  mdsVendorId: {
    label: '供应商',
    field: 'mdsVendorCode',
    componentName: 'inputModal',
    componentProps: {
      title: '供应商',
      type: 'supplyName',
      valueName: 'supplierCode',
      labelName: 'supplierChinese',
    },
  },
  orderType: {
    label: '订单类型',
    field: 'orderType',
    componentName: 'dictSelect',
    componentProps: { dictType: 'orderType' },
  },
  vendorOrdStatus: {
    label: '供应商反馈状态',
    field: 'vendorOrdStatus',
    componentName: 'dictSelect',
    componentProps: { dictType: 'vendorOrdStatus' },
  },
  orderNo: { label: '厂内合同号', field: 'orderNo', componentName: 'input' },
  splyContractNo: {
    label: '供方合同号',
    field: 'splyContractNo',
    componentName: 'input',
  },
  signUserId1: {
    label: '签订人',
    field: 'signUserCode',
    componentName: 'user',
  },
  signDateTime: {
    label: '签订日期',
    field: 'signDateTime',
    componentName: 'rangPicker',
    formItemProps: {
      style: 'width: 596px !important',
    },
  },
  toScsStatus1: {
    label: '是否已发布到协同平台',
    field: 'toScsStatus',
    componentName: 'dictSelect',
    componentProps: { dictType: 'YN' },
  },
  mdsCatagoryLv1Code: {
    label: '一级采购品类编码',
    field: 'mdsCatagoryLv1Code',
    componentName: 'input',
  },
  mdsCatagoryLv1Name: {
    label: '一级采购品类名称',
    field: 'mdsCatagoryLv1Name',
    componentName: 'input',
  },
  effectiveBegDateTime: {
    label: '有效起始日期',
    field: 'effectiveBegDateTime',
    componentName: 'rangPicker',
    formItemProps: {
      style: 'width: 596px !important',
    },
  },
  effectiveEndDateTime: {
    label: '有效截止日期',
    field: 'effectiveEndDateTime',
    componentName: 'rangPicker',
    formItemProps: {
      style: 'width: 596px !important',
    },
  },
  editUserId1: {
    label: '订单编制人',
    field: 'editUserCode',
    componentName: 'user',
  },
  editDeptId: {
    label: '订单编制部门',
    field: 'editDeptId',
    componentName: 'dept',
  },
  ordStatus: {
    label: '制单状态',
    field: 'ordStatus',
    componentName: 'dictSelect',
    componentProps: { dictType: 'pmsOrderStatus' },
  },
  mdsCustomerTypeId: {
    label: '客户类型',
    field: 'mdsCustomerTypeId',
    componentName: 'input',
  },
  billStatus: {
    label: '单据状态',
    field: 'billStatus',
    componentName: 'dictSelect',
    componentProps: { dictType: 'pmsBillStatus' },
  },
  editUserId2: {
    label: '编制人',
    field: 'editUserCode',
    componentName: 'user',
  },
  signUserId2: {
    label: '签约人',
    field: 'signUserCode',
    componentName: 'user',
  },
  contractCategoDisplay: {
    label: '合同类型',
    field: 'contractCategoDisplay',
    componentName: 'contractCatego',
  },
  editDatetimeStart: {
    label: '编制时间（起）',
    field: 'editDatetimeStart',
    componentName: 'datePicker',
  },
  editDatetimeEnd: {
    label: '编制时间（止）',
    field: 'editDatetimeEnd',
    componentName: 'datePicker',
  },
  orderClass: {
    label: '订单类别',
    field: 'orderClass',
    componentName: 'dictSelect',
    componentProps: { dictType: 'orderClassifyName' },
  },
  toScsStatus2: {
    label: '是否发布',
    field: 'toScsStatus',
    componentName: 'dictSelect',
    componentProps: { dictType: 'YN' },
  },
  invInStatus: {
    label: '入库状态',
    field: 'invInStatus',
    componentName: 'dictSelect',
    componentProps: { dictType: 'pmsInvInStatus' },
  },
  mdsVendorCode: {
    label: '供应商编码',
    field: 'mdsVendorCode',
    componentName: 'inputModal',
    componentProps: {
      title: '供应商',
      type: 'supplyName',
      valueName: 'supplierCode',
      labelName: 'supplierChinese',
    },
  },
  mdsVendorName: {
    label: '供应商名称',
    field: 'mdsVendorName',
    componentName: 'input',
  },
  mdsItemCode: {
    label: '物料编码',
    field: 'mdsItemCode',
    componentName: 'inputModal',
    componentProps: {
      title: '物料编码',
      type: 'materialCode',
      valueName: 'materialCode',
      labelName: 'materialName',
    },
  },
  mdsItemName: {
    label: '物料名称',
    field: 'mdsItemName',
    componentName: 'input',
  },
  proMdsItemId: {
    label: '机型',
    field: 'proMdsItemId',
    componentName: 'inputModal',
    componentProps: {
      title: '机型',
      type: 'machineType',
      valueName: 'materialCode',
      labelName: 'materialName',
      defaultQuery: {
        materialType: '6',
        materialStatus: '1,3',
      },
    },
  },
  batchLotNo: { label: '批次', field: 'batchLotNo', componentName: 'input' },
  manufactureLotno: {
    label: '架次',
    field: 'manufactureLotno',
    componentName: 'input',
  },
  planSourceType: {
    label: '需求来源',
    field: 'planSourceType',
    componentName: 'dictSelect',
    componentProps: { dictType: 'requireSourceType' },
  },
  recieveStatus: {
    label: '到货状态',
    field: 'recieveStatus',
    componentName: 'dictSelect',
    componentProps: { dictType: 'pmsRecieveStatus' },
  },
  closeFlag: {
    label: '关闭状态',
    field: 'closeFlag',
    componentName: 'dictSelect',
    componentProps: { dictType: 'pmsCloseFlag' },
  },
  dlvrtDkAftDrwno: {
    label: '图号外协码',
    field: 'dlvrtDkAftDrwno',
    componentName: 'input',
  },
  dlvrtDkAftModls: {
    label: '机型外协码',
    field: 'dlvrtDkAftModls',
    componentName: 'input',
  },
  drawingCode: { label: '图号', field: 'drawingCode', componentName: 'input' },
  marque1: {
    label: '型号',
    field: 'marque',
    componentName: 'inputModal',
    componentProps: {
      title: '型号',
      type: 'materialCode',
      valueName: 'modelMark',
      labelName: 'modelMark',
    },
  },
  cpParentModelCode: {
    label: '成品父型号',
    field: 'cpParentModelCode',
    componentName: 'inputModal',
    componentProps: {
      title: '成品父型号',
      type: 'materialCode',
      valueName: 'parentModel',
      labelName: 'parentModel',
    },
  },
  pmsDeliverNodeSourceType: {
    label: '交付节点数据来源',
    field: 'pmsDeliverNodeSourceType',
    componentName: 'dictSelect',
    componentProps: { dictType: 'pmsDeliverNodeSourceType' },
  },
  marque2: { label: '牌号', field: 'marque', componentName: 'input' },
  specs: { label: '规格', field: 'specs', componentName: 'input' },
  taskNum: { label: '任务编号', field: 'taskNum', componentName: 'input' },
  taskName: { label: '任务名称', field: 'taskName', componentName: 'input' },
  like: {
    label: '喜欢',
    field: 'like',
    componentName: 'selectLike',
    componentProps: {},
  },
};
